package com.tongcheng.mapper;

import com.tongcheng.pojo.Coupons;
import com.tongcheng.pojo.Coupons_use_rules;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import java.lang.Long;
import java.util.List;
import java.util.Map;

public interface CouponsMapper {

    int addCoupons(Map map);

    List<Map> queryCouponsByuserid(Integer userId);

    int delCoupons(Integer coupons_id);

    List<Map> queryCoupons(Integer activity_id);

    int addCoupons_use_rules(Map map);


    List<Map> userSeeCoupons(Integer userId);

    List<Map> userCouponsQeury(Integer userId);

    List<Map> merchantSeeCoupons(Long merchant_id);

    List<Map> merchantCouponsQeury(Long merchant_id);

    int userReceiveCoupons(Integer userId, Integer coupons_id);

    int merchantReceiveCoupons(Long merchant_id, Integer coupons_id);
}
